package org.example.book.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer pageNum =1;//第几页
    private Integer pageSize = 5;//默认多少页一翻
    private Integer offset;//从第几行开始

    public Integer getOffset() {
        return (pageNum-1)*pageSize;
    }
}
